import axios from "~/axios"

export function login(telephone,password,role) {
    return axios.post("/user/login", {
        telephone,
        password,
        role
    })
}

export function getinfo(){
    return axios.post("/user/getinfo")
}

export function updatepassword(data){
    return axios.post("/user/password",data)
}
